//: C01:Nonlocal2.cpp
// Illustrators exceptions.
#include <iostream>
using namespace std;

class Rainbow {
public:
  Rainbow() { cout << "Rainbow()" << endl; }
};

void oz(){
    Rainbow rb;
    for(int i = 0; i < 3; i++){
        cout << "there's no place like home" << endl;
    }
    throw 47;
}

int main(void){
    try{
        cout << "tornado, witch, munchins..." << endl;
        oz();
    }catch(int){
        cout << "Auntie Em! I had the strangest dream..."
             << endl;
    }
}